<?php

use app\common\services\StaticServices;
use yii\helpers\Url;

?>

<?= Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_member.php', ['tab' => 'set']) ?>
<div class="ui equal width grid">
  <div class="column">
    <div class="panel">
      <div class="panel-alone-content">
        <form class="ui form">
          <div class="field">
            <label>会员名称:</label>
            <input type="text" name="member-name" placeholder=""
                   value="<?= isset($info['member_name']) ? $info['member_name'] : '' ?>">
          </div>
          <div class="field">
            <label>会员电话:</label>
            <input type="text" name="member-phone" placeholder=""
                   value="<?= isset($info['member_phone']) ? $info['member_phone'] : '' ?>">
          </div>
          <div class="field">
            <label>会员地址:</label>
            <input type="text" name="member-address" placeholder=""
                   value="<?= isset($info['member_address']) ? $info['member_address'] : '' ?>">
          </div>

          <input type="hidden" name="_csrf" id='csrf' value="<?= Yii::$app->request->csrfToken ?>">
          <input type="hidden" name="member-id" value="<?= isset($info['id']) ? $info['id'] : 0 ?>">
          <button class="ui green basic button member-save  " type="button">提交</button>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  require(['modules/member/set'], function (set) {
    set.member_set()
  });
</script>